package com.leoman.dao;

import com.leoman.entity.LetterAnnexSample;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * LetterAnnexSampleDao
 * Created by 涂奕恒 on 2016/11/23 0023 下午 3:43.
 */
public interface LetterAnnexSampleDao extends JpaRepository<LetterAnnexSample, Integer>, JpaSpecificationExecutor<LetterAnnexSample> {

    @Query("select a from LetterAnnexSample a where a.letterAnnexId = ?1")
    LetterAnnexSample findOneByLetterAnnexId(Integer letterAnnexId);
}